<template>
  <van-signature @submit="onSubmit" @clear="onClear" />
  <van-image v-if="image" :src="image" />
  <UnderTabbar></UnderTabbar>
</template>

<script setup>
import UnderTabbar from '../components/UnderTabbar.vue';
import { ref } from 'vue';
import { showToast } from 'vant';

const image = ref('');
const onSubmit = (data) => {
  image.value = data.image;
};
const onClear = () => showToast('clear');
</script>

<style scoped>

</style>